package yj.scms.userserviceapi.pojo;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Table(name = "t_role_permission", schema = "kj_fy", catalog = "")
public class RolePermissionEntity implements Serializable {
    private int id;
    private Integer roleId;
    private Integer permissionId;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "role_id", nullable = true)
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Basic
    @Column(name = "permission_id", nullable = true)
    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    @Override
    public String toString() {
        return "RolePermissionEntity{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", permissionId=" + permissionId +
                '}';
    }
}
